#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QLabel>
#include <QTextEdit>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

    void handler();
    void handler_textChanged();
    void handler_selectionChanged();
    void handler_cursorPositionChanged();
    void handler_undoAvailable(bool b);
    void handler_redoAvailable(bool b);
    void handler_copyAvailable(bool b);

private:
    Ui::Widget *ui;
    QLabel* label;
    QTextEdit* text_edit1;

    QTextEdit* text_edit2;//测试多个信号
};
#endif // WIDGET_H
